package com.term.domain.enums;

/**
 * Created by Administrator on 2017/1/4.
 */
public enum  UserStatusEnums implements BaseEnum<UserStatusEnums, String> {

    /** 启用. */
    VALID( "VALID", "启用" ),

    /** 禁用. */
    INVALID( "INVALID", "禁用" )
    ;

    private final String value;
    private final String displayName;
    private static java.util.Map<String, UserStatusEnums> valueMap = new java.util.HashMap<String, UserStatusEnums>();

    static {
        for ( UserStatusEnums e : UserStatusEnums.values() ) {
            valueMap.put( e.value, e );
        }
    }

    UserStatusEnums( String value, String displayName ) {
        this.value = value;
        this.displayName = displayName;
    }

    @Override
    public UserStatusEnums getEnum(String value ) {
        return valueMap.get( value );
    }

    @Override
    public java.util.Map<String, UserStatusEnums> getAllValueMap() {
        return valueMap;
    }

    @Override
    public String getValue() {
        return value;
    }

    @Override
    public String getDisplayName() {
        return displayName;
    }
}
